from tasks.dxm import DXM_TASK_DICT

TASK_DICT = {
    "dxm": DXM_TASK_DICT
}


def get_task(task_name):
    # 将任务利用.切开
    task_name_list = task_name.split(".")
    platform_name = task_name_list[0]
    module_name = task_name_list[1]
    task_name = task_name_list[2]
    # 获取任务函数
    return TASK_DICT.get(platform_name).get(module_name).get(task_name)
